package cn.chinaflame.pagodas.req;

import cn.chinaflame.pagodas.enums.CodeEnum;
import cn.chinaflame.pagodas.utils.ParamPreconditions;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by yw on 2018/9/28.
 */

public class PaGreetingsReq extends BaseReq{
    /**
     * 编号
     */
    @Getter
    @Setter
    private Integer id;

    /**
     * 商品编号
     */
    @Getter
    @Setter
    private String productId;

    /**
     * 祝福语
     */
    @Getter
    @Setter
    private String greetings;

    /**
     * 使用状态
     */
    @Getter
    @Setter
    private String status;

    /**
     * 创建日期
     */
    @Getter
    @Setter
    private String createtime;

    /**
     * 更新日期
     */
    @Getter
    @Setter
    private String updatetime;

    @Override
    public void check() {
        ParamPreconditions.checkNotEmpty(greetings, CodeEnum.FAIL.getCode(), "祝福语不能为空");
    }
}
